<template>
	<div>
		<div class="contentWidth top box">
			<div class="companyName">欢迎光临山东省医学情报协会网站</div>
			<div>{{currDate|formateDate}}</div>
			<div>
				<el-input placeholder="请输入内容" class="input-with-select"><el-button slot="append" icon="el-icon-search"></el-button></el-input>
			</div>
		</div>
		<div class="banner">
			<img src="../assets/imgs/logoBg.png"  class="logoBg"/>
			<img src="../assets/imgs/fudiao.png" class="fudiao" />
			<div class="text">
				<h1>山东省医学情报图书协会</h1>
				<h2>SHANDONG MEDICAL INFORMATION ASSICIATION</h2>
			</div>
			<div class="menu">
				<el-menu  class="el-menu-demo" mode="horizontal" background-color="#037edb" text-color="#fff" active-text-color="#fff" router>
				  <el-menu-item index="/">首页</el-menu-item>			 
				  <el-menu-item index="/tzgg" >通知公告</el-menu-item>
				  <el-menu-item index="3">新闻动态</el-menu-item>
				  <el-menu-item index="4">推荐文章</el-menu-item>
				  <el-menu-item index="5" >专家展示</el-menu-item>
				  <el-menu-item index="6">精彩评论</el-menu-item>
				  <el-menu-item index="7">我要留言</el-menu-item>
				</el-menu>
			</div>
			
		</div>
	</div>
</template>

<script>
export default {
	name: 'elhead',
	data() {
		return {
			currDate: new Date()
		};
	},
	filters: {
		formateDate: function(value) {
			var d = new Date(value);
			var y = d.getFullYear();
			var m = d.getMonth() + 1;
			var day = d.getDate();
			var wd = d.getDay();
			return y + '年' + m + '月' + day + '日 星期' + wd;
		}
	}
};
</script>

<style scoped="scoped" lang="less">
.top {
	
	height: 40px;	
	color: #666666;
	
}
.box{
	display: flex;
	justify-content: space-between;
	line-height: 40px;
	font-size: 16px;
	.companyName{
		width: 60%;
		text-align: left;
	}
}
.banner{
	width: 100%;
	height: 230px;
	
	position: relative;
	.logoBg{
		width: 100%;
		height: 230px;
	}
	.fudiao{
		position: absolute;
		top: 0;
		right: 200px;
	}
	.text{
		position: absolute;
		top:30px;
		left: 100px;
	}
	.text h1 {
		padding-top: 40px;
		line-height: 80px;
		font-size: 38px;
		color: dodgerblue;
		text-shadow: #fff 2px -2px 1px, 
					 #fff 2px 2px 1px,
					 #fff -2px 2px 1px,
					 #fff -2px -2px 1px;
	}
	.text h2 {
		padding-top: 0px;
		line-height: 20px;
		color: #567e9c;
		font-size: 18px;
		font-weight: 200;
		text-shadow: #fff 1px -1px 1px, 
					 #fff 1px 1px 1px,
					 #fff -1px 1px 1px,
					 #fff -1px -1px 1px;
	} 
}
.menu{
	width: 100%;
	height: 60px;	
	position: absolute;
	bottom: 0;
	left: 0;
}

.el-menu{
	width: 1200px;
	margin: 0 auto;
	
	
}
.el-menu-item{
	font-size: 18px;
	padding-right: 0;
	width: 12%;
	
	
}
.el-menu-item:after{
	content: "";
	display: inline-block;
	height: 30px;
	margin-top:15px ;
	margin-top:15px ;
	border-right: 1px solid #fff;
	float: right;
	color: #666666;
}
.el-menu-item:last-child:after{
	content: "";
	border: none;
	
}

</style>
